﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using ControlerLib;
using EITSurferInfinityLib;

namespace WpfApplication1
{
    /// <summary>
    /// Interaction logic for SlimDxWindow.xaml
    /// </summary>
    public partial class SlimDxWindow : Window
    {
        public SlimDxControl sdxc;
        public SlimDxWindow(ref VirtualDevice device)
        {
            InitializeComponent();
            sdxc = new SlimDxControl(ref device);
        }

        private void myGrid_Loaded(object sender, RoutedEventArgs e)
        {
            myGrid.Children.Add(sdxc);
            myGrid.Width = sdxc.Width;
            myGrid.Height = sdxc.Height;
            this.Width = sdxc.Width;
            this.Height = sdxc.Height;
        }


    }
}
